#ifndef _COM_OBJ_DEF_H_
#define _COM_OBJ_DEF_H_

#include "stdint.h"
#include "com_def.h"

#ifdef _COM_OBJ_MODULE_
#define COM_EXT
#else
#define COM_EXT extern
#endif

#ifdef __cplusplus
 extern "C" {
#endif
	 

typedef struct
{
    // obj 01
    com_obj_type obj01;
    // obj 02
    com_obj_type obj02;
    // obj 03
    com_obj_type obj03;
    // obj 04
    com_obj_type obj04;
	// obj 04
    com_obj_type obj05;
    // obj 06
    com_obj_type obj06;
    // obj 07
    com_obj_type obj07;
    // obj 02
    com_obj_type obj08;
} com_obj_list_type;

COM_EXT com_obj_list_type com;

void com00_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com01_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com02_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com03_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com04_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com05_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com06_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com07_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com08_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);

#undef COM_EXT

#ifdef __cplusplus
}
#endif


#endif /* _COM_OBJ_DEF_H_ */
